#{extends 'main.html' /}
<head>
<meta content="en-us" http-equiv="Content-Language">
</head>

<form action="@{Application.createRequest(departmentId,orgId)}" method="get">
<br><h3>join requests</h3><br>
<br>
#{if list}
#{list list, as:'request'}
 ${request.request}
 <br>
sender: organizer of 
<a href="@{Application.viewDepartment(request.depId)}"> this department</a> in 
<a href="@{Application.showOrg(request.orgId)}"> this organization</a> 

<hr>
 <a href = "@{Application.manageFollowerRequest(request.id,1)}" onclick="alert('it will be added');">Accept</a><br/>
 <a href = "@{Application.manageFollowerRequest(request.id,2)}" onclick="alert('it will be removed');">Reject</a>
<hr>
<hr>
The message
#{/list}
#{/if}
#{else}
No requests exist yet !
#{/else}
<br>
	